package SwingModel;

import java.util.List;

public class CmsQuizQuestion {
	private int questionID;
	private String question;
	private char key;
	private List<String> options;
	
	
	public CmsQuizQuestion(int questionID, String question, char key,
			List<String> options) {
		this.questionID = questionID;
		this.question = question;
		this.key = key;
		this.options = options;
	}
	
	@Override
	public String toString(){
		StringBuilder returnString = new StringBuilder();
		returnString.append("Quiz Question: \n"
				+ "  questionID: " + questionID + "\n"
				+ "  question: " + question + "\n");
		for(int i = 0; i < options.size(); i++){
			returnString.append("     Option " + (i+1)+ ": " + options.get(i));
		}
		returnString.append("     Key: " + key + "\n");
		
		return returnString.toString();
				
	}
	
	//---------------------------------------------------------
	//GETTERS AND SETTERS:
	//---------------------------------------------------------
		
	public int getQuestionID() {
		return questionID;
	}
	public void setQuestionID(int questionID) {
		this.questionID = questionID;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public char getKey() {
		return key;
	}
	public void setKey(char key) {
		this.key = key;
	}
	public List<String> getOptions() {
		return options;
	}
	public void setOptions(List<String> options) {
		this.options = options;
	}
	


}
